#include "Net.h"



CNet::CNet()
{
}


CNet::~CNet()
{
}

bool CNet::Init()
{
    return CNetBase::Init();
}

bool CNet::AddListen(const char *pIp, int iPort)
{
    return CNetBase::AddListen(pIp, iPort);
}

bool CNet::AddConnect(const char *pIp, int iPort)
{
    return CNetBase::AddConnect(pIp, iPort);
}

int CNet::Polling(int iWaitTime)
{
    return CNetBase::Polling(iWaitTime);
}

int CNet::OnRecv(const int iSocket, char *pData, int iLen)
{
    return CNetBase::OnRecv(iSocket, pData, iLen);
}

bool CNet::OnPacket(const int iSocket, char *pData, int iLen)
{
    return CNetBase::OnPacket( iSocket, pData, iLen);
}

bool CNet::OnAccept(const int iListenSocket, const int iClientSocket)
{
    return CNetBase::OnAccept(iListenSocket, iClientSocket);
}

bool CNet::OnConnect(const int iSocket)
{
    return CNetBase::OnConnect(iSocket);
}

bool CNet::OnClose(const int iSocket)
{
    return CNetBase::OnClose(iSocket);
}

int CNet::Send(const int iSocket, const char *pData, const int iLen)
{
    return CNetBase::Send(iSocket, pData, iLen);
}

void CNet::Close(const int iSocket)
{
    CNetBase::Close(iSocket);
}
